package com.yict.csms.resourceplan.dao.impl;

import org.springframework.stereotype.Repository;

import com.yict.common.dao.impl.CommonDao;
import com.yict.csms.resourceplan.dao.IShipAssginedDaoImpl;
import com.yict.csms.resourceplan.entity.ShipCsms;
import com.yict.csms.resourceplan.entity.ShipPlan;

@Repository
public class ShipAssignedDaoImpl extends CommonDao<ShipPlan, Long> implements
		IShipAssginedDaoImpl {
	
	public ShipPlan findbyId(Long id) {
		ShipPlan t = null;
		try {
			Object obj = this.getTemplate().get(ShipPlan.class, id);
			t = (ShipPlan) obj;
		} catch (Exception e) {
			logger.error(e);
		}
		return t;
	}

}
